import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// 1. 引入你需要的组件
import { Search, Swipe, SwipeItem, Grid, GridItem, Space, Tabbar, TabbarItem, List, Col, Row, Image as VanImage, Button } from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';

const app = createApp(App)

app.use(createPinia())
app.use(router)

// 3. 注册你需要的组件
app.use(Search)
app.use(Swipe)
app.use(SwipeItem)
app.use(Grid)
app.use(GridItem)
app.use(Space)
app.use(Tabbar)
app.use(TabbarItem)
app.use(List)
app.use(Col)
app.use(Row)
app.use(VanImage);
app.use(Button);

app.mount('#app')
